#define  _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
#include<stdlib.h>
#include<math.h>

int main()
{
    int n = 0;
    scanf("%d", &n);
    long long temp = 1;
    int arr[1000] = { 0 };
    int i = 0, j = 0, max = 10;
    while (n)
    {
        temp *= 2;
        n--;
    }
    while (temp)
    {
        arr[i++] = temp % 10;
        temp /= 10;
    }
    for (j = i - 1; max; j--)
    {
        printf("%d", arr[j]);
        max--;
    }
    return 0;
}